$(document).ready(function(){
	$("#div1").css("display","none");
	$("#div2").css("display","none");
	shiftPage();
});
var shiftPage = function(){
	var page = 0;
	var playnext = "";
	var playpre = "";
	var playnow = "";
	var pagenum = function(page){
		playnow = "#div" + page;
		if(page == 0){//没有上一步
			$("#pre a").css("color","#999");
			$("#pre a").css("text-decoration","none");
			$("#pre a").css("cursor","default");
			playnext = "#div" + (page+1);
			playpre = playnow;
			return;
			}
		if(page == 2){//没有下一步
			$("#next a").hide();
			$("#submitId").show();
			playpre = "#div" + (page-1);
			playnext = playnow;
			return;
		}
		playnext = "#div" + (page+1);
		playpre = "#div" + (page-1);
	}
		pagenum(page);
		$("#next").click(function(){
			$(playnow).hide();
			$(playnext).show();
			if(page < 2)
			page++;
			if(page == 1){
			$("#pre a").css({"color":"#000","text-decoration":"underline"});
			$("#pre a").css("cursor","pointer");
			}
			pagenum(page);
		});
		$("#pre").click(function(){
			$(playnow).hide();
			$(playpre).show();
			if(page > 0)
			page--;
			if(page == 1){
			$("#next a").show();
			$("#submitId").hide();
			}
			pagenum(page);
		});
}
/*
var clickSubmit(){
	$("#submitId").click
}
*/
//标签提示
